#include<stdio.h>
#define SIZE 10
int sum(int ar[], int n);
int main(void)
{
	int ma[SIZE ] = {20, 10, 5, 39, 4, 16, 19, 26, 31, 20};
	long ans;
	ans = sum(ma,SIZE);
	printf("The total number of ma is %ld.\n", ans); // sum
	printf("The size of ma is %zd bytes.\n", sizeof ma); // 40
	return 0;
}
int sum(int ar[], int n)
{
	int i;
	int t = 0;
	for(i = 0; i < n; i++)
	{
		t += ar[i];
	}
	printf("The total of ar is %zd bytes.\n", sizeof ar);
	return t;
}
